<md-dialog aria-label="选择产品" style="width:600px;">
  <md-toolbar>
    <div class="md-toolbar-tools" >
      <h1>选择产品</h1>
    </div>
  </md-toolbar>
  <md-content class="sticky-container">
    <div class="dialog-content">
        <form name="addForm">
            <div layout layout-sm="column">
                <md-input-container flex >
                    <label>产品编号</label>
                    <input ng-model="searchInfo.productCode" ></input>
                </md-input-container>
                <md-input-container flex >
                    <label>产品名称</label>
                    <input ng-model="searchInfo.productName" ></input>
                </md-input-container>
            </div>
        </form>
        <div class="table-info">
            <div >
                <div class="table-detail" >
                    <div class="t_r">
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th></th>
                                <!-- <th width="5%" ><md-checkbox  aria-label = 'dd' ng-checked = 'checkFlag()'  style="margin: 0px;" ng-click="getAll()"></md-checkbox></th> -->
                                <th width="10%">产品编号</th>
                                <th width="10%">产品名称</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat = 'product in  productD'>
                                <td width="5%">
                                    <md-checkbox aria-label = 'xx' ng-checked = 'exists(product)' ng-click='toggle(product)' style="margin: 0px;"></md-checkbox>
                                </td>
                                <td width="10%">{{ product.productCode }}</td>
                                <td width="10%">{{ product.productName}}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
  </md-content>
  <div class="md-actions" layout="row">
    <span flex></span>
    <md-button ng-click="cancel()">
      退出
    </md-button>
  </div>
</md-dialog>